#include <stdio.h>
#include <time.h>

int AddToVal(int start, int end)
{
    int sum = 0;
    int i = 0;
    for(i = start; i < end; ++i)
    {
        sum += i;
    }
    return sum;
}
void print(int sum)
{
    long long timestmp = time(NULL);
    printf("result = %d, datetime = %lld\n", sum, timestmp);
}

int main()
{
    int sum = AddToVal(0, 100);
    print(sum);

    return 0;
}
